use aws_config::{BehaviorVersion, Region};
use aws_sdk_s3::config::Credentials;

#[tokio::main]
async fn main() {
    let credentials = Credentials::new(
        "",
        "",
        None,
        None,
        "aws-sdk-s3",
    );
    let config = aws_config::defaults(BehaviorVersion::latest())
        .endpoint_url("")
        .region(Region::new("APAC"))
        .credentials_provider(credentials)
        .load()
        .await;
    let client = aws_sdk_s3::Client::new(&config);
    let a = client.get_object().key("").send().await.unwrap();
}
